﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace RinNote.Server.Model.FileModel
{
    /// <summary>
    /// 笔记实体
    /// </summary>
    public class Note
    {
        /// <summary>
        /// 笔记ID
        /// </summary>
        public string _id { get; set; }
        /// <summary>
        /// 所在文件夹ID
        /// </summary>
        public string FolderId { get; set; } = "";
        /// <summary>
        /// 笔记标题
        /// </summary>
        public string NoteTitle { get; set; }
        /// <summary>
        /// 笔记正文HTML
        /// </summary>
        public string Content { get; set; }
        /// <summary>
        /// 创建文件夹的用户ID
        /// </summary>
        public string CreateUserId { get; set; }
        /// <summary>
        /// 文件夹是否有密码
        /// </summary>
        public bool HasPassword { get; set; } = false;
        /// <summary>
        /// 文件夹密码
        /// </summary>
        public string Passworld { get; set; } = null;
        /// <summary>
        /// 创建日期
        /// </summary>
        public DateTime CreateDate { get; set; } = DateTime.Now;
        /// <summary>
        /// 上一次修改时间
        /// </summary>
        public DateTime LastUpdateTime { get; set; } = DateTime.Now;
    }
}
